package com.net.service;

import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * Created by zhang yufei on 2017/12/11.
 */
@Service
public class AsyncTaskService {

    @Async
    public void executeAsyncTask(Integer i){
        System.out.println("执行一部任务："+i);
    }

    @Async
    public void exeteAsyncTaskPlus(Integer i){
        System.out.println("执行异步任务："+(i+1));
    }

}
